package cn.cdeden.common.oss.annotation;

import cn.cdeden.common.oss.enumd.OssModuleType;
import jakarta.validation.ConstraintValidator;
import jakarta.validation.ConstraintValidatorContext;

/**
 * @ProjectName : KnowCore01
 * @Package : cn.cdeden.resource.unified.annotation
 * @ClassName : StartWithAValidation
 * @Author : Yu.
 * @Description : // 定义系统模块的 文件夹上传模块
 * @Date : 2024/12/4 15:51
 * @Version : 1.0
 */
public class SystemModuleValidation implements ConstraintValidator<SystemModule,String> {

    @Override
    public boolean isValid(String s, ConstraintValidatorContext constraintValidatorContext) {
        // 这里面写一些校验规则
        return OssModuleType.findCoed(s);
    }
}
